/*
 * 攀枝花学院二手图书拍卖平台
 * Design by 王伟学
 * Version :1.0
 */
package com.auction.system.domain.dto.auction;

import java.io.Serializable;

import com.auction.system.domain.pojo.auction.OrderInfoPojo;
import com.auction.system.enums.EnumOrderStatus;
import com.auction.system.utils.StringUtil;
import lombok.Data;
/**
 * order_info - 订单信息表 实体类
 * 
 * @author 软件工程3班-王伟学
 */
@Data
public class OrderInfo extends OrderInfoPojo implements Serializable {

    private static final long serialVersionUID = 1L;
	
	public OrderInfo(){

    }

    public OrderInfo(Long id){
        this.setId(id);
    }

    //拍品名称
    private String goodName;

	//卖方姓名
	private String sellerName;

	//买方姓名
	private String buyerName;

    private String orderStatusDesc;

    public String getOrderStatusDesc(){
        if(StringUtil.isEmpty(getOrderStatus())){
            return "";
        }
        return EnumOrderStatus.getName(getOrderStatus());
    }
}
